<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="./Public/Home/css/list.css" />
		<script type="text/javascript"src="./Public/uploadify/jquery-1.8.2.min.js"></script>
			
		<script>
			$(function(){
				$('.jia').click(function(){
					taid=$(this).attr("taid");

						$('.a'+taid).parent().parent().slideToggle(100);

					divlen=$('.shou').length;
					
				})
			})
		</script>
	</head>
	<body>
		<!--头部-->
{{include file="../Common/header"}}
		<!--头部结束-->
		<!--分类-->		
<div class="cateNav">
	<div class="cateNavCount">
		<div class="cateNavCountL">
					<!--顶级分类-->	
			<p style="font-size: 14px;color: #00CCCC;">{{$cateGrandpa['cname']}}</p>		
				
					<!--第二级分类-->
			<h2 >{{$cateSon['cname']}}</h2>			
		</div>
		
				<!--第三级分类-->
		<ul class="cateNavCountR">
			{{foreach from="$cateGrandson" value="$v"}}
					<li><a href="">{{$v['cname']}}</a></li>
			{{endforeach}}
		</ul>
	</div>
</div>
<!--分类结束-->

<!--设计列表的商品-->
<div id="shejiGoods">
	<!--筛选导航-->
	<div class="screeningNav">
		<div class="condition">
			<div class="conditionL">
				<ul class="screen">
					{{foreach from="$lastAttr" value="$n"}}
					<li class="jia" taid={{$n['taid']}}>{{$n['name']}}</li>
					{{endforeach}}
				</ul>
			</div>
			<div class="conditionR">
				<a href="javascript:;" class="hot">最热</a>
				<a href="javascript:;" class="new">最新</a>
			</div>
		</div>
	</div>
	<!--筛选条件-->
	<div class="shaixuan" style="margin:0 auto;width:1100px">
		{{foreach from="$lastAttr" key="$k" value="$v"}}
				<?php
                    $temp = $param;
                    $temp[$k] = 0;
                ?>
		<div	   class="shou" style="display: none;border-bottom:1px solid #e3e3e3;overflow: hidden;">
			<p >{{$v['name']}}：</p>
			<ul>
				<li>
					<a href="{{U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}}" {{if value="$param[$k] eq 0"}}class="bj"{{endif}}>全部</a>
				</li>
				{{foreach from="$v['value']" value="$value"}}
				<?php
				$temp[$k]=$value['gaid'];			
				 ?>
				<li class="a{{$value['typeattribute_tid']}}" taid={{$value['typeattribute_tid']}}><a href="{{U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}}" {{if value="$value['gaid'] eq $param[$k]"}}class="bj"{{endif}}>{{$value['gvalue']}}</a></li>
				{{endforeach}}
			</ul>
		</div>
		{{endforeach}}
	</div>
	
	
	<div class="GoodsList">
		
		<div style="width:1144px;">
			{{foreach from="$goodsData" value="$v"}}
				<div class="Goods">
					<a href="{{U('Details/index',array('gid'=>$v['gid']))}}" target="_blank"><img src="{{$v['listimg']}}" alt="" /></a>
					<h3><a href="{{U('Details/index',array('gid'=>$v['gid']))}}" target="_blank">{{$v['gname']}}</a></h3>
					<div class="GoodsWarp">
						<div class="overlay"></div>
						<div class="price">￥{{$v['price']}}</div>
					</div>
				</div>
			{{endforeach}}
		</div>
		
		
		
	</div>
</div>

		
<!--设计列表的商品结束-->		


		<!--底部-->
{{include file="../Common/footer"}}	
		
		
	</body>
</html>
